﻿using System;
using System.Collections.Generic;
using System.Web;
using CnGine.Web;

/// <summary>
///LoginBase 的摘要说明
/// </summary>
public class LoginBase : PageBase
{
    public LoginBase()
    {
        //初始化session
        this.Init += new EventHandler(LoginBase_Init);
    }

    void LoginBase_Init(object sender, EventArgs e)
    {
        CheckSession();
    }

    public void CheckSession()
    {
        if (Session["user"] == null)
        {
            Response.Redirect("/login.aspx");
        }
    }
}